﻿<%@ Page Title="" Language="C#"  MasterPageFile="~/UserInterface.Master" 
    AutoEventWireup="true" CodeBehind="ConfirmWinSession.aspx.cs" Inherits="spktNhom4DoAnCuoiKy.UserModules.ConfirmWinSession" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style16
        {
            width: 206px;
        }
    </style>
    <link rel="stylesheet" href="css/SessionDetails.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    
    <asp:MultiView ID="mvConfirm" runat="server">
        <asp:View ID="vXacNhan" runat="server">
          
            <h2>
                <asp:Literal ID="Literal1" runat="server" Text="Xác Nhận Phiên Thắng"></asp:Literal></h2>
            <table cellpadding="2" cellspacing="5" class="style12">
                <tr>
                    <td class="header">
                        <asp:Label ID="Label15" runat="server" Text="<%$ Resources:String,sd_ThongTinSanPham  %>"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="content">
                        <table class="style12">
                            <tr>
                                <td rowspan="5" class="style16">
                                    <asp:Image ID="imgAnhPhien" runat="server" Height="125px" Width="171px" />
                                </td>
                                <td>
                                    <asp:Literal ID="Literal16" runat="server" Text="Tên Sản Phẩm"></asp:Literal>
                                    <asp:Label ID="lblTenSanPham" runat="server" CssClass="field_content" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label16" runat="server" Text="<%$ Resources:String,sd_MoTa  %>"></asp:Label>
                                    <asp:Label ID="lblMoTa" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label17" runat="server" Text="<%$ Resources:String,sd_NguonGocXuatXu  %>"></asp:Label>
                                    <asp:Label ID="lblNguonGoc" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                    <asp:Literal ID="Literal15" runat="server"></asp:Literal>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label18" runat="server" Text="<%$ Resources:String,sd_TinhTrangSanPham  %>"></asp:Label>
                                    <asp:Label ID="lblTinhTrangSanPham" runat="server" Text="Label" CssClass="field_content"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Literal ID="Literal12" runat="server" Text="Số Lượng"></asp:Literal>
                                    <asp:Label ID="lblSoLuong" runat="server" CssClass="field_content" Text="Label"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        <asp:Literal ID="Literal14" runat="server" Text="Hình Thức và Cước phí vận chuyển"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td class="content">
                        <table cellpadding="0" cellspacing="5" class="style12">
                            <tr>
                                <td style="padding-left: 10px; width: 200px;">
                                    <asp:Literal ID="Literal11" runat="server" Text="Hình thức Giao Hàng"></asp:Literal>
                                </td>
                                <td align="left">
                                    <asp:RadioButtonList ID="rblHinhThucGiaoHang" runat="server" 
                                        OnSelectedIndexChanged="rblHinhThucGiaoHang_SelectedIndexChanged" 
                                        AutoPostBack="True">
                                    </asp:RadioButtonList>
                                   
                                 
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 10px; width: 150px;">
                                    <asp:Label ID="Label20" runat="server" Text="<%$ Resources:String,sd_ChuyenDen  %>"></asp:Label>:
                                </td>
                                <td align="left">
                                    <asp:DropDownList ID="ddlQuocGia" runat="server" Height="25px" Width="199px" DataMember="MaQuocGia"
                                        DataValueField="TenQuocGia" 
                                        OnSelectedIndexChanged="ddlQuocGia_SelectedIndexChanged" 
                                        AutoPostBack="True">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 10px; width: 150px; margin-left: 40px;">
                                    <asp:Literal ID="Literal17" runat="server" Text="Phần trăm vận chuyển"></asp:Literal>
                                </td>
                                <td align="left" height="30">
                                    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" 
                                   >
                                    <ContentTemplate>
                                            <asp:Label ID="PhanTramPhiVanChuyen" runat="server" ForeColor="#333333" Font-Bold="True"
                                                Font-Size="13pt"></asp:Label>
                                                
                                        </ContentTemplate>
                                        <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="rblHinhThucGiaoHang" EventName="SelectedIndexChanged" />
                                        <asp:AsyncPostBackTrigger ControlID="ddlQuocGia" EventName="SelectedIndexChanged" />
                                        
                                        </Triggers>
                                    </asp:UpdatePanel>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 10px; width: 150px; margin-left: 40px;">
                                    <asp:Label ID="Label21" runat="server" Text="<%$ Resources:String,sd_ChiPhiChuyen  %>"></asp:Label>
                                </td>
                                <td align="left" height="30">
                                    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                    
                                    
                                            <asp:Label ID="lblPhiVanChuyen" runat="server" Text="Label"></asp:Label>
                                   </ContentTemplate>
                                     <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="rblHinhThucGiaoHang" EventName="SelectedIndexChanged" />
                                        <asp:AsyncPostBackTrigger ControlID="ddlQuocGia" EventName="SelectedIndexChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                                    

                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="header">
                        <asp:Literal ID="Literal13" runat="server" Text="Thông tin thanh toán"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td class="content">
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                        
                                <table class="style12" cellpadding="2" cellspacing="5">
                                    <tr>
                                        <td width="200">
                                            <asp:Literal ID="Literal18" runat="server" Text="Giá sản phẩm"></asp:Literal>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblGiaSanPham" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label22" runat="server" Text="<%$ Resources:String,sd_ChiPhiChuyen  %>"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblPhiVanChuyen0" runat="server" Text="Label"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="border-top-style: solid; border-width: medium; border-color: #000000">
                                            <asp:Literal ID="Literal19" runat="server" Text="Tổng chi phí phải trả"></asp:Literal>
                                        </td>
                                        <td style="border-top-style: solid; border-width: medium; border-color: #000000">
                                            <asp:Label ID="lblSoTienPhaiTra" runat="server" Text="Label" Font-Bold="True" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                          </ContentTemplate>
                                     <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="rblHinhThucGiaoHang" EventName="SelectedIndexChanged" />
                                        <asp:AsyncPostBackTrigger ControlID="ddlQuocGia" EventName="SelectedIndexChanged" />
                                        </Triggers>
                                    </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Button ID="btnXacNhan" runat="server" Height="29px" Text="<%$ Resources:String,sd_XacNhan  %>"
                            Width="169px" />
                        <ajaxToolkit:ModalPopupExtender ID="btnXacNhan_ModalPopupExtender" runat="server"
                            DynamicServicePath="" Enabled="True" PopupControlID="PnThongBao" TargetControlID="btnXacNhan"
                            CancelControlID="ibDong">
                        </ajaxToolkit:ModalPopupExtender>
                        <asp:Panel ID="PnThongBao" runat="server" Style="background: rgb(210,235,249); /* old browsers */
background: -moz-linear-gradient(top,  rgba(210,235,249,1) 0%, rgba(254,255,255,1) 100%); /* ff3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(210,235,249,1)), color-stop(100%,rgba(254,255,255,1)));
                            /* chrome,safari4+ */
background: -webkit-linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(254,255,255,1) 100%); /* chrome10+,safari5.1+ */
background: -o-linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(254,255,255,1) 100%); /* opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(210,235,249,1) 0%,rgba(254,255,255,1) 100%); /* ie10+ */
background: linear-gradient(to bottom,  rgba(210,235,249,1) 0%,rgba(254,255,255,1) 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2ebf9', endColorstr='#feffff',GradientType=0 );
                            /* ie6-9 */" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="5px" Font-Size="Large"
                            Height="310px" Width="600px" BackColor="#CCCCCC" HorizontalAlign="Center">
                            <asp:Panel ID="Panel1" runat="server" BackColor="#3366FF" Font-Bold="True" ForeColor="White"
                                Height="30px" HorizontalAlign="Center">
                                <asp:Literal ID="Literal20" runat="server" Text="Thông Báo"></asp:Literal>
                                <asp:ImageButton ID="ibDong" runat="server" Height="25px" Style="float: right;" ImageUrl="~/images/close.jpg"
                                    Width="25px" />
                            </asp:Panel>
                            <asp:Panel ID="Panel2" runat="server" ForeColor="Black" Height="229px">
                                <br />
                                <asp:Label ID="Label24" runat="server" Font-Bold="False" Text="Vui lòng  kiểm tra lại các thông tin phiên. Nếu bạn đã chắc chắn bấm nút &quot;Xác nhận và Tạo mã giao dịch&quot; để xác nhận"></asp:Label>
                                <br />
                                <br />
                                <asp:Button ID="btnXacNhanTaoMa" runat="server" Text="Xác nhận và Tạo mã giao dịch"
                                    Font-Bold="True" Font-Size="Large" OnClick="btnXacNhanTaoMa_Click" Height="40px" />
                                <br />
                                <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:Label ID="lblConfirmFirst" runat="server" Font-Bold="False" Font-Size="Medium"
                                            ForeColor="Red" Text="(Vui lòng xác nhận trước)" Visible="False"></asp:Label>
                                        <asp:Panel ID="Panel3" runat="server">
                                            <table class="style12" align="left">
                                                <tr>
                                                    <td width="150px">
                                                        <asp:Literal ID="Literal22" runat="server" Text="Mã giao dịch"></asp:Literal>
                                                    </td>
                                                    <td align="left">
                                                        <asp:Label ID="lblMaGiaoDich" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Literal ID="Literal23" runat="server" Text="Mã Phiên"></asp:Literal>
                                                    </td>
                                                    <td align="left">
                                                        <asp:Label ID="lblMaPhien" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Literal ID="Literal24" runat="server" Text="Người Mua"></asp:Literal>
                                                    </td>
                                                    <td align="left">
                                                        <asp:Label ID="lblNguoiMua" runat="server"></asp:Label>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" colspan="2">
                                                        <asp:Button ID="btnThanhToanNgay" runat="server" Font-Bold="True" Font-Size="Large"
                                                            Text="Thanh Toán Ngay" OnClick="btnThanhToanNgay_Click" Height="40px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </asp:Panel>
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="btnXacNhanTaoMa" EventName="click" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </asp:Panel>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="vDaXacNhan" runat="server">
            <h2>
                <asp:Literal ID="lThongBao" runat="server" Text="Phiên đã được xác nhận."></asp:Literal></h2>
        </asp:View>
    </asp:MultiView>
</asp:Content>
